home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-04-19 | 8.1 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
10%
| dexvert
| Jesper Olsen Module (music/jesperOlsen)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Apr 19 01:08:22 1995, modified Wed Apr 19 01:08:22 1995, creator Think C, type ASCII, 7786 bytes "Demo.c" , at 0x1eea 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
49%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
33%
| TrID
| TTComp archive compressed (bin-4K)
| default (weak)
| |
16%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 44 65 6d 6f 2e 63 | 00 00 00 00 00 00 00 00 |..Demo.c|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 1e 6a 00 | 00 01 7e ab ba 4b 46 ab |......j.|..~..KF.|
|00000060| ba 4b 46 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.KF.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8c f0 00 00 |........|........|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 53 6c 69 64 65 72 |#include| "Slider|
|00000090| 20 43 44 45 46 2e 68 22 | 0d 0d 23 64 65 66 69 6e | CDEF.h"|..#defin|
|000000a0| 65 20 74 68 65 4d 61 78 | 28 78 2c 79 29 20 28 78 |e theMax|(x,y) (x|
|000000b0| 20 3e 20 79 20 3f 20 78 | 20 3a 20 79 29 0d 23 64 | > y ? x| : y).#d|
|000000c0| 65 66 69 6e 65 20 74 68 | 65 4d 69 6e 28 78 2c 79 |efine th|eMin(x,y|
|000000d0| 29 20 28 78 20 3c 20 79 | 20 3f 20 78 20 3a 20 79 |) (x < y| ? x : y|
|000000e0| 29 0d 0d 09 09 09 09 09 | 09 09 2f 2f 20 53 6f 72 |).......|..// Sor|
|000000f0| 72 79 20 66 6f 72 20 74 | 68 65 20 6c 61 63 6b 20 |ry for t|he lack |
|00000100| 6f 66 20 63 6f 6d 6d 65 | 6e 74 73 2e 20 20 4f 6e |of comme|nts. On|
|00000110| 20 74 68 65 20 6f 74 68 | 65 72 0d 09 09 09 09 09 | the oth|er......|
|00000120| 09 09 2f 2f 20 68 61 6e | 64 2c 20 61 6c 6c 20 74 |..// han|d, all t|
|00000130| 68 65 20 6d 6f 64 75 6c | 65 73 20 61 72 65 20 76 |he modul|es are v|
|00000140| 65 72 79 20 73 6d 61 6c | 6c 20 61 6e 64 20 74 72 |ery smal|l and tr|
|00000150| 69 76 69 61 6c 2e 0d 0d | 2f 2f 20 23 23 23 23 23 |ivial...|// #####|
|00000160| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000170| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000180| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000190| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000001a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000001b0| 20 0d 76 6f 69 64 20 66 | 6c 6f 61 74 54 6f 53 74 | .void f|loatToSt|
|000001c0| 72 0d 28 0d 09 66 6c 6f | 61 74 20 74 68 65 46 6c |r.(..flo|at theFl|
|000001d0| 6f 61 74 2c 0d 09 53 74 | 72 32 35 35 20 74 68 65 |oat,..St|r255 the|
|000001e0| 53 74 72 69 6e 67 0d 29 | 0d 0d 7b 0d 09 63 68 61 |String.)|..{..cha|
|000001f0| 72 20 74 65 6d 70 53 74 | 72 5b 38 30 5d 3b 0d 09 |r tempSt|r[80];..|
|00000200| 0d 09 69 66 20 28 28 74 | 68 65 46 6c 6f 61 74 20 |..if ((t|heFloat |
|00000210| 2d 20 28 73 68 6f 72 74 | 29 20 74 68 65 46 6c 6f |- (short|) theFlo|
|00000220| 61 74 29 20 3d 3d 20 30 | 29 0d 09 7b 0d 09 09 73 |at) == 0|)..{...s|
|00000230| 70 72 69 6e 74 66 20 28 | 74 65 6d 70 53 74 72 2c |printf (|tempStr,|
|00000240| 20 22 25 64 22 2c 20 28 | 73 68 6f 72 74 29 20 74 | "%d", (|short) t|
|00000250| 68 65 46 6c 6f 61 74 29 | 3b 0d 20 20 09 7d 0d 20 |heFloat)|;. .}. |
|00000260| 09 65 6c 73 65 0d 20 09 | 7b 0d 09 09 73 70 72 69 |.else. .|{...spri|
|00000270| 6e 74 66 20 28 74 65 6d | 70 53 74 72 2c 20 22 25 |ntf (tem|pStr, "%|
|00000280| 37 2e 35 66 22 2c 20 74 | 68 65 46 6c 6f 61 74 29 |7.5f", t|heFloat)|
|00000290| 3b 0d 20 20 09 7d 0d 20 | 20 09 43 74 6f 50 73 74 |;. .}. | .CtoPst|
|000002a0| 72 20 28 74 65 6d 70 53 | 74 72 29 3b 0d 20 20 09 |r (tempS|tr);. .|
|000002b0| 42 6c 6f 63 6b 4d 6f 76 | 65 20 28 26 74 65 6d 70 |BlockMov|e (&temp|
|000002c0| 53 74 72 5b 30 5d 2c 20 | 26 74 68 65 53 74 72 69 |Str[0], |&theStri|
|000002d0| 6e 67 5b 30 5d 2c 20 74 | 65 6d 70 53 74 72 5b 30 |ng[0], t|empStr[0|
|000002e0| 5d 20 2b 20 31 29 3b 0d | 7d 0d 0d 2f 2f 20 23 23 |] + 1);.|}..// ##|
|000002f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000300| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000310| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000320| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000330| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000340| 23 23 23 20 0d 48 61 6e | 64 6c 65 20 74 68 65 44 |### .Han|dle theD|
|00000350| 49 74 65 6d 48 61 6e 64 | 6c 65 0d 28 0d 09 44 69 |ItemHand|le.(..Di|
|00000360| 61 6c 6f 67 50 74 72 20 | 74 68 65 44 6c 67 50 74 |alogPtr |theDlgPt|
|00000370| 72 2c 0d 09 73 68 6f 72 | 74 20 74 68 65 49 74 65 |r,..shor|t theIte|
|00000380| 6d 0d 29 0d 0d 7b 0d 20 | 20 20 48 61 6e 64 6c 65 |m.)..{. | Handle|
|00000390| 20 69 74 65 6d 48 64 6c | 3b 0d 20 20 20 52 65 63 | itemHdl|;. Rec|
|000003a0| 74 20 69 74 65 6d 52 65 | 63 74 3b 0d 20 20 20 73 |t itemRe|ct;. s|
|000003b0| 68 6f 72 74 20 69 74 65 | 6d 54 79 70 3b 0d 20 20 |hort ite|mTyp;. |
|000003c0| 20 0d 20 20 20 47 65 74 | 44 49 74 65 6d 20 28 74 | . Get|DItem (t|
|000003d0| 68 65 44 6c 67 50 74 72 | 2c 20 74 68 65 49 74 65 |heDlgPtr|, theIte|
|000003e0| 6d 2c 20 26 69 74 65 6d | 54 79 70 2c 20 26 69 74 |m, &item|Typ, &it|
|000003f0| 65 6d 48 64 6c 2c 20 26 | 69 74 65 6d 52 65 63 74 |emHdl, &|itemRect|
|00000400| 29 3b 0d 20 20 20 72 65 | 74 75 72 6e 20 28 69 74 |);. re|turn (it|
|00000410| 65 6d 48 64 6c 29 3b 0d | 7d 0d 0d 2f 2f 20 23 23 |emHdl);.|}..// ##|
|00000420| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000430| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000440| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000450| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000460| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000470| 23 23 23 20 0d 52 65 63 | 74 20 74 68 65 44 49 74 |### .Rec|t theDIt|
|00000480| 65 6d 52 65 63 74 0d 28 | 0d 09 44 69 61 6c 6f 67 |emRect.(|..Dialog|
|00000490| 50 74 72 20 74 68 65 44 | 6c 67 50 74 72 2c 0d 09 |Ptr theD|lgPtr,..|
|000004a0| 73 68 6f 72 74 20 74 68 | 65 49 74 65 6d 0d 29 0d |short th|eItem.).|
|000004b0| 0d 7b 0d 20 20 20 48 61 | 6e 64 6c 65 20 69 74 65 |.{. Ha|ndle ite|
|000004c0| 6d 48 64 6c 3b 0d 20 20 | 20 52 65 63 74 20 69 74 |mHdl;. | Rect it|
|000004d0| 65 6d 52 65 63 74 3b 0d | 20 20 20 73 68 6f 72 74 |emRect;.| short|
|000004e0| 20 69 74 65 6d 54 79 70 | 3b 0d 20 20 20 0d 20 20 | itemTyp|;. . |
|000004f0| 20 47 65 74 44 49 74 65 | 6d 20 28 74 68 65 44 6c | GetDIte|m (theDl|
|00000500| 67 50 74 72 2c 20 74 68 | 65 49 74 65 6d 2c 20 26 |gPtr, th|eItem, &|
|00000510| 69 74 65 6d 54 79 70 2c | 20 26 69 74 65 6d 48 64 |itemTyp,| &itemHd|
|00000520| 6c 2c 20 26 69 74 65 6d | 52 65 63 74 29 3b 0d 20 |l, &item|Rect);. |
|00000530| 20 20 72 65 74 75 72 6e | 20 28 69 74 65 6d 52 65 | return| (itemRe|
|00000540| 63 74 29 3b 0d 7d 0d 0d | 2f 2f 20 23 23 23 23 23 |ct);.}..|// #####|
|00000550| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000560| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000570| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000580| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000590| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000005a0| 20 0d 43 6f 6e 74 72 6f | 6c 48 61 6e 64 6c 65 20 | .Contro|lHandle |
|000005b0| 74 68 65 43 6f 6e 74 72 | 6f 6c 48 61 6e 64 6c 65 |theContr|olHandle|
|000005c0| 0d 28 0d 09 44 69 61 6c | 6f 67 50 74 72 20 74 68 |.(..Dial|ogPtr th|
|000005d0| 65 44 6c 67 50 74 72 2c | 0d 09 73 68 6f 72 74 20 |eDlgPtr,|..short |
|000005e0| 74 68 65 49 74 65 6d 0d | 29 0d 0d 7b 0d 09 72 65 |theItem.|)..{..re|
|000005f0| 74 75 72 6e 20 28 28 43 | 6f 6e 74 72 6f 6c 48 61 |turn ((C|ontrolHa|
|00000600| 6e 64 6c 65 29 20 74 68 | 65 44 49 74 65 6d 48 61 |ndle) th|eDItemHa|
|00000610| 6e 64 6c 65 20 28 74 68 | 65 44 6c 67 50 74 72 2c |ndle (th|eDlgPtr,|
|00000620| 20 74 68 65 49 74 65 6d | 29 29 3b 0d 7d 0d 0d 2f | theItem|));.}../|
|00000630| 2f 20 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |/ ######|########|
|00000640| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000650| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000660| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000670| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000680| 23 23 23 23 23 23 23 20 | 0d 73 68 6f 72 74 20 74 |####### |.short t|
|00000690| 68 65 43 6f 6e 74 72 6f | 6c 56 61 6c 75 65 0d 28 |heContro|lValue.(|
|000006a0| 0d 09 44 69 61 6c 6f 67 | 50 74 72 20 74 68 65 44 |..Dialog|Ptr theD|
|000006b0| 6c 67 50 74 72 2c 0d 09 | 73 68 6f 72 74 20 74 68 |lgPtr,..|short th|
|000006c0| 65 49 74 65 6d 0d 29 0d | 0d 7b 0d 09 72 65 74 75 |eItem.).|.{..retu|
|000006d0| 72 6e 20 28 47 65 74 43 | 74 6c 56 61 6c 75 65 20 |rn (GetC|tlValue |
|000006e0| 28 74 68 65 43 6f 6e 74 | 72 6f 6c 48 61 6e 64 6c |(theCont|rolHandl|
|000006f0| 65 20 28 74 68 65 44 6c | 67 50 74 72 2c 20 74 68 |e (theDl|gPtr, th|
|00000700| 65 49 74 65 6d 29 29 29 | 3b 0d 7d 0d 0d 2f 2f 20 |eItem)))|;.}..// |
|00000710| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000720| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000730| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000740| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000750| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000760| 23 23 23 23 23 20 0d 76 | 6f 69 64 20 73 65 74 44 |##### .v|oid setD|
|00000770| 49 74 65 6d 50 72 6f 63 | 0d 28 0d 09 44 69 61 6c |ItemProc|.(..Dial|
|00000780| 6f 67 50 74 72 20 74 68 | 65 44 6c 67 50 74 72 2c |ogPtr th|eDlgPtr,|
|00000790| 0d 09 73 68 6f 72 74 20 | 74 68 65 49 74 65 6d 2c |..short |theItem,|
|000007a0| 0d 09 50 72 6f 63 50 74 | 72 20 74 68 65 50 72 6f |..ProcPt|r thePro|
|000007b0| 63 50 74 72 0d 29 0d 0d | 7b 0d 20 20 20 48 61 6e |cPtr.)..|{. Han|
|000007c0| 64 6c 65 20 69 74 65 6d | 48 64 6c 3b 0d 20 20 20 |dle item|Hdl;. |
|000007d0| 52 65 63 74 20 69 74 65 | 6d 52 65 63 74 3b 0d 20 |Rect ite|mRect;. |
|000007e0| 20 20 73 68 6f 72 74 20 | 69 74 65 6d 54 79 70 3b | short |itemTyp;|
|000007f0| 0d 0d 20 20 20 47 65 74 | 44 49 74 65 6d 20 28 74 |.. Get|DItem (t|
|00000800| 68 65 44 6c 67 50 74 72 | 2c 20 74 68 65 49 74 65 |heDlgPtr|, theIte|
|00000810| 6d 2c 20 26 69 74 65 6d | 54 79 70 2c 20 26 69 74 |m, &item|Typ, &it|
|00000820| 65 6d 48 64 6c 2c 20 26 | 69 74 65 6d 52 65 63 74 |emHdl, &|itemRect|
|00000830| 29 3b 0d 20 20 20 69 66 | 20 28 28 69 74 65 6d 54 |);. if| ((itemT|
|00000840| 79 70 20 26 20 28 69 74 | 65 6d 44 69 73 61 62 6c |yp & (it|emDisabl|
|00000850| 65 20 2d 20 31 29 29 20 | 3d 3d 20 75 73 65 72 49 |e - 1)) |== userI|
|00000860| 74 65 6d 29 0d 20 20 20 | 7b 0d 20 20 20 20 20 20 |tem). |{. |
|00000870| 53 65 74 44 49 74 65 6d | 20 28 74 68 65 44 6c 67 |SetDItem| (theDlg|
|00000880| 50 74 72 2c 20 74 68 65 | 49 74 65 6d 2c 20 69 74 |Ptr, the|Item, it|
|00000890| 65 6d 54 79 70 2c 20 28 | 48 61 6e 64 6c 65 29 20 |emTyp, (|Handle) |
|000008a0| 74 68 65 50 72 6f 63 50 | 74 72 2c 20 26 69 74 65 |theProcP|tr, &ite|
|000008b0| 6d 52 65 63 74 29 3b 0d | 20 20 20 7d 0d 7d 0d 0d |mRect);.| }.}..|
|000008c0| 2f 2f 20 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |// #####|########|
|000008d0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000008e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000008f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000900| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000910| 23 23 23 23 23 23 23 23 | 20 0d 70 61 73 63 61 6c |########| .pascal|
|00000920| 20 76 6f 69 64 20 64 72 | 61 77 55 73 65 72 49 74 | void dr|awUserIt|
|00000930| 65 6d 73 0d 28 0d 09 57 | 69 6e 64 6f 77 50 74 72 |ems.(..W|indowPtr|
|00000940| 20 74 68 65 44 6c 67 50 | 74 72 2c 0d 09 73 68 6f | theDlgP|tr,..sho|
|00000950| 72 74 20 74 68 65 49 74 | 65 6d 0d 29 0d 0d 7b 0d |rt theIt|em.)..{.|
|00000960| 09 52 65 63 74 20 72 3b | 0d 09 66 6c 6f 61 74 20 |.Rect r;|..float |
|00000970| 76 61 6c 3b 0d 09 53 74 | 72 32 35 35 20 6d 65 73 |val;..St|r255 mes|
|00000980| 73 61 67 65 3b 0d 09 0d | 09 72 20 3d 20 74 68 65 |sage;...|.r = the|
|00000990| 44 49 74 65 6d 52 65 63 | 74 20 28 74 68 65 44 6c |DItemRec|t (theDl|
|000009a0| 67 50 74 72 2c 20 74 68 | 65 49 74 65 6d 29 3b 0d |gPtr, th|eItem);.|
|000009b0| 09 46 72 61 6d 65 52 65 | 63 74 20 28 26 72 29 3b |.FrameRe|ct (&r);|
|000009c0| 0d 09 49 6e 73 65 74 52 | 65 63 74 20 28 26 72 2c |..InsetR|ect (&r,|
|000009d0| 20 31 2c 20 31 29 3b 0d | 09 45 72 61 73 65 52 65 | 1, 1);.|.EraseRe|
|000009e0| 63 74 20 28 26 72 29 3b | 0d 09 76 61 6c 20 3d 20 |ct (&r);|..val = |
|000009f0| 28 66 6c 6f 61 74 29 20 | 74 68 65 43 6f 6e 74 72 |(float) |theContr|
|00000a00| 6f 6c 56 61 6c 75 65 20 | 28 74 68 65 44 6c 67 50 |olValue |(theDlgP|
|00000a10| 74 72 2c 20 74 68 65 49 | 74 65 6d 20 2b 20 31 29 |tr, theI|tem + 1)|
|00000a20| 3b 0d 09 66 6c 6f 61 74 | 54 6f 53 74 72 20 28 76 |;..float|ToStr (v|
|00000a30| 61 6c 2c 20 6d 65 73 73 | 61 67 65 29 3b 0d 09 4d |al, mess|age);..M|
|00000a40| 6f 76 65 54 6f 20 28 72 | 2e 6c 65 66 74 20 2b 20 |oveTo (r|.left + |
|00000a50| 34 2c 20 72 2e 62 6f 74 | 74 6f 6d 20 2d 20 33 29 |4, r.bot|tom - 3)|
|00000a60| 3b 0d 09 44 72 61 77 53 | 74 72 69 6e 67 20 28 6d |;..DrawS|tring (m|
|00000a70| 65 73 73 61 67 65 29 3b | 0d 7d 0d 0d 2f 2f 20 23 |essage);|.}..// #|
|00000a80| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000a90| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000aa0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ab0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ac0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ad0| 23 23 23 23 20 0d 70 61 | 73 63 61 6c 20 76 6f 69 |#### .pa|scal voi|
|00000ae0| 64 20 6d 79 41 63 74 69 | 6f 6e 0d 28 0d 09 43 6f |d myActi|on.(..Co|
|00000af0| 6e 74 72 6f 6c 48 61 6e | 64 6c 65 20 74 68 65 43 |ntrolHan|dle theC|
|00000b00| 6e 74 6c 2c 0d 09 73 68 | 6f 72 74 20 74 68 65 50 |ntl,..sh|ort theP|
|00000b10| 61 72 74 0d 29 0d 0d 7b | 0d 09 73 68 6f 72 74 20 |art.)..{|..short |
|00000b20| 72 61 6e 67 65 3b 0d 09 | 73 68 6f 72 74 20 76 61 |range;..|short va|
|00000b30| 6c 3b 0d 09 53 74 72 32 | 35 35 20 6d 65 73 73 61 |l;..Str2|55 messa|
|00000b40| 67 65 3b 0d 09 52 65 63 | 74 20 72 3b 0d 09 0d 09 |ge;..Rec|t r;....|
|00000b50| 72 61 6e 67 65 20 3d 20 | 28 28 2a 2a 74 68 65 43 |range = |((**theC|
|00000b60| 6e 74 6c 29 2e 63 6f 6e | 74 72 6c 4d 61 78 20 2d |ntl).con|trlMax -|
|00000b70| 20 28 2a 2a 74 68 65 43 | 6e 74 6c 29 2e 63 6f 6e | (**theC|ntl).con|
|00000b80| 74 72 6c 4d 69 6e 29 20 | 2b 20 31 3b 0d 09 76 61 |trlMin) |+ 1;..va|
|00000b90| 6c 20 3d 20 30 3b 0d 09 | 09 09 09 09 09 09 09 2f |l = 0;..|......./|
|00000ba0| 2f 20 54 68 69 73 20 69 | 73 20 74 68 65 20 6f 6e |/ This i|s the on|
|00000bb0| 65 20 22 74 72 69 63 6b | 22 20 61 62 6f 75 74 20 |e "trick|" about |
|00000bc0| 74 68 69 73 20 43 44 45 | 46 2e 0d 09 09 09 09 09 |this CDE|F.......|
|00000bd0| 09 09 09 2f 2f 20 54 68 | 65 20 22 75 70 22 20 64 |...// Th|e "up" d|
|00000be0| 69 72 65 63 74 69 6f 6e | 20 69 73 20 75 73 65 64 |irection| is used|
|00000bf0| 20 74 6f 20 6d 61 6b 65 | 20 74 68 65 0d 09 09 09 | to make| the....|
|00000c00| 09 09 09 09 09 2f 2f 20 | 74 68 65 20 63 6f 6e 74 |.....// |the cont|
|00000c10| 72 6f 6c 20 44 45 43 52 | 45 41 53 45 20 69 6e 20 |rol DECR|EASE in |
|00000c20| 76 61 6c 75 65 2e 20 20 | 52 61 74 68 65 72 0d 09 |value. |Rather..|
|00000c30| 09 09 09 09 09 09 09 2f | 2f 20 63 6f 6e 74 72 61 |......./|/ contra|
|00000c40| 72 79 20 74 6f 20 69 6e | 74 75 69 74 69 6f 6e 2e |ry to in|tuition.|
|00000c50| 20 20 54 68 65 20 72 65 | 61 73 6f 6e 20 66 6f 72 | The re|ason for|
|00000c60| 20 74 68 69 73 0d 09 09 | 09 09 09 09 09 09 2f 2f | this...|......//|
|00000c70| 20 69 73 20 62 65 63 61 | 75 73 65 20 75 6e 74 69 | is beca|use unti|
|00000c80| 6c 20 49 20 67 6f 74 20 | 74 68 69 73 20 77 6f 72 |l I got |this wor|
|00000c90| 6b 69 6e 67 2c 20 49 20 | 77 61 73 0d 09 09 09 09 |king, I |was.....|
|00000ca0| 09 09 09 09 2f 2f 20 75 | 73 69 6e 67 20 74 68 65 |....// u|sing the|
|00000cb0| 20 73 63 72 6f 6c 6c 20 | 62 61 72 20 43 44 45 46 | scroll |bar CDEF|
|00000cc0| 20 28 64 6f 6e 27 74 20 | 63 61 6c 6c 20 74 68 65 | (don't |call the|
|00000cd0| 0d 09 09 09 09 09 09 09 | 09 2f 2f 20 48 4d 49 20 |........|.// HMI |
|00000ce0| 70 6f 6c 69 63 65 21 29 | 20 61 6e 64 20 74 68 69 |police!)| and thi|
|00000cf0| 73 20 69 73 20 61 6e 20 | 65 78 61 63 74 20 64 72 |s is an |exact dr|
|00000d00| 6f 70 2d 69 6e 0d 09 09 | 09 09 09 09 09 09 2f 2f |op-in...|......//|
|00000d10| 20 72 65 70 6c 61 63 65 | 6d 65 6e 74 2e 20 20 28 | replace|ment. (|
|00000d20| 53 63 72 6f 6c 6c 20 62 | 61 72 73 20 64 65 63 72 |Scroll b|ars decr|
|00000d30| 65 61 73 65 20 61 20 76 | 61 6c 75 65 0d 09 09 09 |ease a v|alue....|
|00000d40| 09 09 09 09 09 2f 2f 20 | 77 68 65 6e 20 73 63 72 |.....// |when scr|
|00000d50| 6f 6c 6c 65 64 20 75 70 | 20 74 6f 6f 2e 29 0d 09 |olled up| too.)..|
|00000d60| 73 77 69 74 63 68 20 28 | 74 68 65 50 61 72 74 29 |switch (|thePart)|
|00000d70| 0d 09 7b 0d 09 63 61 73 | 65 20 69 6e 55 70 42 75 |..{..cas|e inUpBu|
|00000d80| 74 74 6f 6e 3a 0d 09 09 | 76 61 6c 20 3d 20 2d 31 |tton:...|val = -1|
|00000d90| 3b 0d 09 09 62 72 65 61 | 6b 3b 0d 09 63 61 73 65 |;...brea|k;..case|
|00000da0| 20 69 6e 44 6f 77 6e 42 | 75 74 74 6f 6e 3a 0d 09 | inDownB|utton:..|
|00000db0| 09 76 61 6c 20 3d 20 31 | 3b 0d 09 09 62 72 65 61 |.val = 1|;...brea|
|00000dc0| 6b 3b 0d 09 63 61 73 65 | 20 69 6e 50 61 67 65 55 |k;..case| inPageU|
|00000dd0| 70 3a 0d 09 09 76 61 6c | 20 3d 20 2d 28 72 61 6e |p:...val| = -(ran|
|00000de0| 67 65 20 2f 20 31 30 29 | 3b 0d 09 09 62 72 65 61 |ge / 10)|;...brea|
|00000df0| 6b 3b 0d 09 63 61 73 65 | 20 69 6e 50 61 67 65 44 |k;..case| inPageD|
|00000e00| 6f 77 6e 3a 0d 09 09 76 | 61 6c 20 3d 20 28 72 61 |own:...v|al = (ra|
|00000e10| 6e 67 65 20 2f 20 31 30 | 29 3b 0d 09 09 62 72 65 |nge / 10|);...bre|
|00000e20| 61 6b 3b 0d 09 7d 0d 09 | 76 61 6c 20 3d 20 28 2a |ak;..}..|val = (*|
|00000e30| 2a 74 68 65 43 6e 74 6c | 29 2e 63 6f 6e 74 72 6c |*theCntl|).contrl|
|00000e40| 56 61 6c 75 65 20 2b 20 | 76 61 6c 3b 0d 09 76 61 |Value + |val;..va|
|00000e50| 6c 20 3d 20 74 68 65 4d | 61 78 20 28 28 2a 2a 74 |l = theM|ax ((**t|
|00000e60| 68 65 43 6e 74 6c 29 2e | 63 6f 6e 74 72 6c 4d 69 |heCntl).|contrlMi|
|00000e70| 6e 2c 20 76 61 6c 29 3b | 0d 09 76 61 6c 20 3d 20 |n, val);|..val = |
|00000e80| 74 68 65 4d 69 6e 20 28 | 28 2a 2a 74 68 65 43 6e |theMin (|(**theCn|
|00000e90| 74 6c 29 2e 63 6f 6e 74 | 72 6c 4d 61 78 2c 20 76 |tl).cont|rlMax, v|
|00000ea0| 61 6c 29 3b 0d 09 69 66 | 20 28 76 61 6c 20 21 3d |al);..if| (val !=|
|00000eb0| 20 28 2a 2a 74 68 65 43 | 6e 74 6c 29 2e 63 6f 6e | (**theC|ntl).con|
|00000ec0| 74 72 6c 56 61 6c 75 65 | 29 0d 09 7b 0d 09 09 53 |trlValue|)..{...S|
|00000ed0| 65 74 43 74 6c 56 61 6c | 75 65 20 28 74 68 65 43 |etCtlVal|ue (theC|
|00000ee0| 6e 74 6c 2c 20 76 61 6c | 29 3b 0d 09 09 66 6c 6f |ntl, val|);...flo|
|00000ef0| 61 74 54 6f 53 74 72 20 | 28 76 61 6c 2c 20 6d 65 |atToStr |(val, me|
|00000f00| 73 73 61 67 65 29 3b 0d | 09 09 69 66 20 28 28 2a |ssage);.|..if ((*|
|00000f10| 2a 74 68 65 43 6e 74 6c | 29 2e 63 6f 6e 74 72 6c |*theCntl|).contrl|
|00000f20| 52 66 43 6f 6e 29 0d 09 | 09 7b 0d 09 09 09 72 20 |RfCon)..|.{....r |
|00000f30| 3d 20 74 68 65 44 49 74 | 65 6d 52 65 63 74 20 28 |= theDIt|emRect (|
|00000f40| 28 2a 2a 74 68 65 43 6e | 74 6c 29 2e 63 6f 6e 74 |(**theCn|tl).cont|
|00000f50| 72 6c 4f 77 6e 65 72 2c | 20 28 73 68 6f 72 74 29 |rlOwner,| (short)|
|00000f60| 20 28 2a 2a 74 68 65 43 | 6e 74 6c 29 2e 63 6f 6e | (**theC|ntl).con|
|00000f70| 74 72 6c 52 66 43 6f 6e | 29 3b 0d 09 09 09 49 6e |trlRfCon|);....In|
|00000f80| 73 65 74 52 65 63 74 20 | 28 26 72 2c 20 31 2c 20 |setRect |(&r, 1, |
|00000f90| 31 29 3b 0d 09 09 09 45 | 72 61 73 65 52 65 63 74 |1);....E|raseRect|
|00000fa0| 20 28 26 72 29 3b 0d 09 | 09 09 4d 6f 76 65 54 6f | (&r);..|..MoveTo|
|00000fb0| 20 28 72 2e 6c 65 66 74 | 20 2b 20 34 2c 20 72 2e | (r.left| + 4, r.|
|00000fc0| 62 6f 74 74 6f 6d 20 2d | 20 33 29 3b 0d 09 09 09 |bottom -| 3);....|
|00000fd0| 44 72 61 77 53 74 72 69 | 6e 67 20 28 6d 65 73 73 |DrawStri|ng (mess|
|00000fe0| 61 67 65 29 3b 0d 09 09 | 7d 0d 09 7d 0d 7d 0d 0d |age);...|}..}.}..|
|00000ff0| 2f 2f 20 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |// #####|########|
|00001000| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001010| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001020| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001030| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001040| 23 23 23 23 23 23 23 23 | 20 0d 70 61 73 63 61 6c |########| .pascal|
|00001050| 20 42 6f 6f 6c 65 61 6e | 20 6d 79 46 69 6c 74 65 | Boolean| myFilte|
|00001060| 72 0d 28 0d 09 44 69 61 | 6c 6f 67 50 74 72 20 74 |r.(..Dia|logPtr t|
|00001070| 68 65 44 6c 67 2c 0d 09 | 45 76 65 6e 74 52 65 63 |heDlg,..|EventRec|
|00001080| 6f 72 64 20 2a 74 68 65 | 45 76 65 6e 74 2c 0d 09 |ord *the|Event,..|
|00001090| 73 68 6f 72 74 20 2a 74 | 68 65 49 74 65 6d 0d 29 |short *t|heItem.)|
|000010a0| 0d 0d 7b 0d 09 42 6f 6f | 6c 65 61 6e 20 72 65 74 |..{..Boo|lean ret|
|000010b0| 20 3d 20 46 41 4c 53 45 | 3b 0d 09 50 6f 69 6e 74 | = FALSE|;..Point|
|000010c0| 20 77 68 65 72 65 3b 0d | 09 43 6f 6e 74 72 6f 6c | where;.|.Control|
|000010d0| 48 61 6e 64 6c 65 20 63 | 6e 74 6c 3b 0d 09 73 68 |Handle c|ntl;..sh|
|000010e0| 6f 72 74 20 70 61 72 74 | 3b 0d 09 47 72 61 66 50 |ort part|;..GrafP|
|000010f0| 74 72 20 6f 6c 64 50 6f | 72 74 3b 0d 09 73 68 6f |tr oldPo|rt;..sho|
|00001100| 72 74 20 76 61 6c 3b 0d | 09 53 74 72 32 35 35 20 |rt val;.|.Str255 |
|00001110| 6d 65 73 73 61 67 65 3b | 0d 09 52 65 63 74 20 72 |message;|..Rect r|
|00001120| 3b 0d 09 0d 09 69 66 20 | 28 74 68 65 45 76 65 6e |;....if |(theEven|
|00001130| 74 2d 3e 77 68 61 74 20 | 3d 3d 20 6d 6f 75 73 65 |t->what |== mouse|
|00001140| 44 6f 77 6e 29 0d 09 7b | 0d 09 09 77 68 65 72 65 |Down)..{|...where|
|00001150| 20 3d 20 74 68 65 45 76 | 65 6e 74 2d 3e 77 68 65 | = theEv|ent->whe|
|00001160| 72 65 3b 0d 09 09 47 65 | 74 50 6f 72 74 20 28 26 |re;...Ge|tPort (&|
|00001170| 6f 6c 64 50 6f 72 74 29 | 3b 0d 09 09 53 65 74 50 |oldPort)|;...SetP|
|00001180| 6f 72 74 20 28 74 68 65 | 44 6c 67 29 3b 0d 09 09 |ort (the|Dlg);...|
|00001190| 47 6c 6f 62 61 6c 54 6f | 4c 6f 63 61 6c 20 28 26 |GlobalTo|Local (&|
|000011a0| 77 68 65 72 65 29 3b 0d | 09 09 73 77 69 74 63 68 |where);.|..switch|
|000011b0| 20 28 70 61 72 74 20 3d | 20 46 69 6e 64 43 6f 6e | (part =| FindCon|
|000011c0| 74 72 6f 6c 20 28 77 68 | 65 72 65 2c 20 28 57 69 |trol (wh|ere, (Wi|
|000011d0| 6e 64 6f 77 50 74 72 29 | 74 68 65 44 6c 67 2c 20 |ndowPtr)|theDlg, |
|000011e0| 26 63 6e 74 6c 29 29 0d | 09 09 7b 0d 09 09 63 61 |&cntl)).|..{...ca|
|000011f0| 73 65 20 69 6e 50 61 67 | 65 44 6f 77 6e 3a 0d 09 |se inPag|eDown:..|
|00001200| 09 63 61 73 65 20 69 6e | 50 61 67 65 55 70 3a 0d |.case in|PageUp:.|
|00001210| 09 09 63 61 73 65 20 69 | 6e 55 70 42 75 74 74 6f |..case i|nUpButto|
|00001220| 6e 3a 0d 09 09 63 61 73 | 65 20 69 6e 44 6f 77 6e |n:...cas|e inDown|
|00001230| 42 75 74 74 6f 6e 3a 0d | 09 09 63 61 73 65 20 69 |Button:.|..case i|
|00001240| 6e 54 68 75 6d 62 3a 0d | 09 09 09 69 66 20 28 28 |nThumb:.|...if ((|
|00001250| 2a 2a 63 6e 74 6c 29 2e | 63 6f 6e 74 72 6c 41 63 |**cntl).|contrlAc|
|00001260| 74 69 6f 6e 20 3d 3d 20 | 28 50 72 6f 63 50 74 72 |tion == |(ProcPtr|
|00001270| 29 20 2d 31 4c 29 0d 09 | 09 09 7b 0d 09 09 09 09 |) -1L)..|..{.....|
|00001280| 54 72 61 63 6b 43 6f 6e | 74 72 6f 6c 20 28 63 6e |TrackCon|trol (cn|
|00001290| 74 6c 2c 20 77 68 65 72 | 65 2c 20 28 50 72 6f 63 |tl, wher|e, (Proc|
|000012a0| 50 74 72 29 20 2d 31 4c | 29 3b 0d 09 09 09 7d 0d |Ptr) -1L|);....}.|
|000012b0| 09 09 09 65 6c 73 65 0d | 09 09 09 7b 0d 09 09 09 |...else.|...{....|
|000012c0| 09 54 72 61 63 6b 43 6f | 6e 74 72 6f 6c 20 28 63 |.TrackCo|ntrol (c|
|000012d0| 6e 74 6c 2c 20 77 68 65 | 72 65 2c 20 28 50 72 6f |ntl, whe|re, (Pro|
|000012e0| 63 50 74 72 29 20 6d 79 | 41 63 74 69 6f 6e 29 3b |cPtr) my|Action);|
|000012f0| 0d 09 09 09 7d 0d 09 09 | 09 72 65 74 20 3d 20 54 |....}...|.ret = T|
|00001300| 52 55 45 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |RUE;....|break;..|
|00001310| 09 7d 0d 09 09 09 09 09 | 09 09 09 2f 2f 20 54 68 |.}......|...// Th|
|00001320| 69 73 20 69 73 20 68 65 | 72 65 20 62 65 63 61 75 |is is he|re becau|
|00001330| 73 65 20 6d 79 41 63 74 | 69 6f 6e 20 64 6f 65 73 |se myAct|ion does|
|00001340| 6e 27 74 0d 09 09 09 09 | 09 09 09 09 2f 2f 20 67 |n't.....|....// g|
|00001350| 65 74 20 63 61 6c 6c 65 | 64 20 62 79 20 54 72 61 |et calle|d by Tra|
|00001360| 63 6b 43 6f 6e 74 72 6f | 6c 20 77 68 65 6e 20 64 |ckContro|l when d|
|00001370| 72 61 67 67 69 6e 67 20 | 74 68 65 0d 09 09 09 09 |ragging |the.....|
|00001380| 09 09 09 09 2f 2f 20 74 | 68 75 6d 62 2e 0d 09 09 |....// t|humb....|
|00001390| 69 66 20 28 70 61 72 74 | 20 3d 3d 20 69 6e 54 68 |if (part| == inTh|
|000013a0| 75 6d 62 29 0d 09 09 7b | 0d 09 09 09 69 66 20 28 |umb)...{|....if (|
|000013b0| 28 2a 2a 63 6e 74 6c 29 | 2e 63 6f 6e 74 72 6c 52 |(**cntl)|.contrlR|
|000013c0| 66 43 6f 6e 29 0d 09 09 | 09 7b 0d 09 09 09 09 76 |fCon)...|.{.....v|
|000013d0| 61 6c 20 3d 20 47 65 74 | 43 74 6c 56 61 6c 75 65 |al = Get|CtlValue|
|000013e0| 20 28 63 6e 74 6c 29 3b | 0d 09 09 09 09 66 6c 6f | (cntl);|.....flo|
|000013f0| 61 74 54 6f 53 74 72 20 | 28 76 61 6c 2c 20 6d 65 |atToStr |(val, me|
|00001400| 73 73 61 67 65 29 3b 0d | 09 09 09 09 72 20 3d 20 |ssage);.|....r = |
|00001410| 74 68 65 44 49 74 65 6d | 52 65 63 74 20 28 74 68 |theDItem|Rect (th|
|00001420| 65 44 6c 67 2c 20 28 73 | 68 6f 72 74 29 20 28 2a |eDlg, (s|hort) (*|
|00001430| 2a 63 6e 74 6c 29 2e 63 | 6f 6e 74 72 6c 52 66 43 |*cntl).c|ontrlRfC|
|00001440| 6f 6e 29 3b 0d 09 09 09 | 09 49 6e 73 65 74 52 65 |on);....|.InsetRe|
|00001450| 63 74 20 28 26 72 2c 20 | 31 2c 20 31 29 3b 0d 09 |ct (&r, |1, 1);..|
|00001460| 09 09 09 45 72 61 73 65 | 52 65 63 74 20 28 26 72 |...Erase|Rect (&r|
|00001470| 29 3b 0d 09 09 09 09 4d | 6f 76 65 54 6f 20 28 72 |);.....M|oveTo (r|
|00001480| 2e 6c 65 66 74 20 2b 20 | 34 2c 20 72 2e 62 6f 74 |.left + |4, r.bot|
|00001490| 74 6f 6d 20 2d 20 33 29 | 3b 0d 09 09 09 09 44 72 |tom - 3)|;.....Dr|
|000014a0| 61 77 53 74 72 69 6e 67 | 20 28 6d 65 73 73 61 67 |awString| (messag|
|000014b0| 65 29 3b 0d 09 09 09 7d | 0d 09 09 7d 0d 0d 09 09 |e);....}|...}....|
|000014c0| 53 65 74 50 6f 72 74 20 | 28 6f 6c 64 50 6f 72 74 |SetPort |(oldPort|
|000014d0| 29 3b 0d 09 7d 0d 09 72 | 65 74 75 72 6e 20 28 72 |);..}..r|eturn (r|
|000014e0| 65 74 29 3b 0d 7d 0d 0d | 2f 2f 20 23 23 23 23 23 |et);.}..|// #####|
|000014f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001500| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001510| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001520| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001530| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001540| 20 0d 43 6f 6e 74 72 6f | 6c 48 61 6e 64 6c 65 20 | .Contro|lHandle |
|00001550| 62 75 69 6c 64 43 6f 6e | 74 72 6f 6c 0d 28 0d 09 |buildCon|trol.(..|
|00001560| 44 69 61 6c 6f 67 50 74 | 72 20 74 68 65 44 6c 67 |DialogPt|r theDlg|
|00001570| 2c 0d 09 73 68 6f 72 74 | 20 74 68 65 49 74 65 6d |,..short| theItem|
|00001580| 2c 0d 09 73 68 6f 72 74 | 20 74 68 65 56 61 6c 75 |,..short| theValu|
|00001590| 65 2c 0d 09 73 68 6f 72 | 74 20 74 68 65 4d 69 6e |e,..shor|t theMin|
|000015a0| 2c 0d 09 73 68 6f 72 74 | 20 74 68 65 4d 61 78 2c |,..short| theMax,|
|000015b0| 0d 09 73 68 6f 72 74 20 | 74 68 65 43 44 45 46 2c |..short |theCDEF,|
|000015c0| 0d 09 42 6f 6f 6c 65 61 | 6e 20 64 69 73 61 62 6c |..Boolea|n disabl|
|000015d0| 65 64 0d 29 0d 0d 7b 0d | 09 73 68 6f 72 74 20 74 |ed.)..{.|.short t|
|000015e0| 79 70 65 3b 0d 09 43 6f | 6e 74 72 6f 6c 48 61 6e |ype;..Co|ntrolHan|
|000015f0| 64 6c 65 20 63 6e 74 72 | 6c 48 64 6c 3b 0d 09 52 |dle cntr|lHdl;..R|
|00001600| 65 63 74 20 72 3b 0d 09 | 53 74 72 32 35 35 20 74 |ect r;..|Str255 t|
|00001610| 69 74 6c 65 20 3d 20 7b | 22 20 22 7d 3b 0d 0d 09 |itle = {|" "};...|
|00001620| 47 65 74 44 49 74 65 6d | 20 28 74 68 65 44 6c 67 |GetDItem| (theDlg|
|00001630| 2c 20 74 68 65 49 74 65 | 6d 2c 20 26 74 79 70 65 |, theIte|m, &type|
|00001640| 2c 20 28 48 61 6e 64 6c | 65 2a 29 20 26 63 6e 74 |, (Handl|e*) &cnt|
|00001650| 72 6c 48 64 6c 2c 20 26 | 72 29 3b 0d 09 63 6e 74 |rlHdl, &|r);..cnt|
|00001660| 72 6c 48 64 6c 20 3d 20 | 4e 65 77 43 6f 6e 74 72 |rlHdl = |NewContr|
|00001670| 6f 6c 0d 09 28 0d 09 09 | 74 68 65 44 6c 67 2c 0d |ol..(...|theDlg,.|
|00001680| 09 09 26 72 2c 0d 09 09 | 74 69 74 6c 65 2c 0d 09 |..&r,...|title,..|
|00001690| 09 46 41 4c 53 45 2c 0d | 09 09 74 68 65 56 61 6c |.FALSE,.|..theVal|
|000016a0| 75 65 2c 0d 09 09 74 68 | 65 4d 69 6e 2c 0d 09 09 |ue,...th|eMin,...|
|000016b0| 74 68 65 4d 61 78 2c 0d | 09 09 74 68 65 43 44 45 |theMax,.|..theCDE|
|000016c0| 46 2c 0d 09 09 30 4c 0d | 09 29 3b 0d 09 53 65 74 |F,...0L.|.);..Set|
|000016d0| 44 49 74 65 6d 20 28 74 | 68 65 44 6c 67 2c 20 74 |DItem (t|heDlg, t|
|000016e0| 68 65 49 74 65 6d 2c 20 | 63 74 72 6c 49 74 65 6d |heItem, |ctrlItem|
|000016f0| 20 2b 20 72 65 73 43 74 | 72 6c 2c 20 28 48 61 6e | + resCt|rl, (Han|
|00001700| 64 6c 65 29 20 63 6e 74 | 72 6c 48 64 6c 2c 20 26 |dle) cnt|rlHdl, &|
|00001710| 72 29 3b 0d 09 69 66 20 | 28 64 69 73 61 62 6c 65 |r);..if |(disable|
|00001720| 64 29 0d 09 7b 0d 09 09 | 48 69 6c 69 74 65 43 6f |d)..{...|HiliteCo|
|00001730| 6e 74 72 6f 6c 20 28 63 | 6e 74 72 6c 48 64 6c 2c |ntrol (c|ntrlHdl,|
|00001740| 20 32 35 35 29 3b 0d 09 | 7d 0d 09 53 68 6f 77 43 | 255);..|}..ShowC|
|00001750| 6f 6e 74 72 6f 6c 20 28 | 63 6e 74 72 6c 48 64 6c |ontrol (|cntrlHdl|
|00001760| 29 3b 0d 09 72 65 74 75 | 72 6e 20 28 63 6e 74 72 |);..retu|rn (cntr|
|00001770| 6c 48 64 6c 29 3b 0d 7d | 0d 0d 2f 2f 20 23 23 23 |lHdl);.}|..// ###|
|00001780| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001790| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000017a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000017b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000017c0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000017d0| 23 23 20 0d 6d 61 69 6e | 0d 28 0d 09 76 6f 69 64 |## .main|.(..void|
|000017e0| 0d 29 0d 0d 7b 09 09 0d | 09 0d 09 43 6f 6e 74 72 |.)..{...|...Contr|
|000017f0| 6f 6c 48 61 6e 64 6c 65 | 20 63 6e 74 72 6c 48 64 |olHandle| cntrlHd|
|00001800| 6c 3b 0d 09 73 68 6f 72 | 74 20 69 74 65 6d 48 69 |l;..shor|t itemHi|
|00001810| 74 3b 0d 09 44 69 61 6c | 6f 67 50 74 72 20 64 6c |t;..Dial|ogPtr dl|
|00001820| 67 50 74 72 3b 0d 0d 09 | 49 6e 69 74 47 72 61 66 |gPtr;...|InitGraf|
|00001830| 20 28 26 74 68 65 50 6f | 72 74 29 3b 0d 09 49 6e | (&thePo|rt);..In|
|00001840| 69 74 46 6f 6e 74 73 20 | 28 29 3b 0d 09 46 6c 75 |itFonts |();..Flu|
|00001850| 73 68 45 76 65 6e 74 73 | 20 28 65 76 65 72 79 45 |shEvents| (everyE|
|00001860| 76 65 6e 74 2c 20 30 29 | 3b 0d 09 49 6e 69 74 57 |vent, 0)|;..InitW|
|00001870| 69 6e 64 6f 77 73 20 28 | 29 3b 0d 09 49 6e 69 74 |indows (|);..Init|
|00001880| 4d 65 6e 75 73 20 28 29 | 3b 0d 09 54 45 49 6e 69 |Menus ()|;..TEIni|
|00001890| 74 20 28 29 3b 0d 09 49 | 6e 69 74 43 75 72 73 6f |t ();..I|nitCurso|
|000018a0| 72 20 28 29 3b 0d 09 49 | 6e 69 74 44 69 61 6c 6f |r ();..I|nitDialo|
|000018b0| 67 73 20 28 30 4c 29 3b | 0d 09 4d 61 78 41 70 70 |gs (0L);|..MaxApp|
|000018c0| 6c 5a 6f 6e 65 20 28 29 | 3b 0d 09 09 09 09 09 09 |lZone ()|;.......|
|000018d0| 09 09 2f 2f 20 53 69 6e | 63 65 20 74 68 65 72 65 |..// Sin|ce there|
|000018e0| 20 69 73 20 61 20 6d 61 | 74 63 68 69 6e 67 20 27 | is a ma|tching '|
|000018f0| 64 63 74 62 27 20 72 65 | 73 6f 75 72 63 65 20 31 |dctb' re|source 1|
|00001900| 32 38 2c 0d 09 09 09 09 | 09 09 09 09 2f 2f 20 74 |28,.....|....// t|
|00001910| 68 65 20 77 69 6e 64 6f | 77 20 28 61 6e 64 20 74 |he windo|w (and t|
|00001920| 68 75 73 20 74 68 65 20 | 63 6f 6e 74 72 6f 6c 73 |hus the |controls|
|00001930| 29 20 77 69 6c 6c 20 62 | 65 0d 09 09 09 09 09 09 |) will b|e.......|
|00001940| 09 09 2f 2f 20 64 72 61 | 77 6e 20 69 6e 20 63 6f |..// dra|wn in co|
|00001950| 6c 6f 72 2e 20 20 49 6e | 20 61 20 42 2f 57 20 77 |lor. In| a B/W w|
|00001960| 69 6e 64 6f 77 2c 20 74 | 68 65 20 63 6f 6e 74 72 |indow, t|he contr|
|00001970| 6f 6c 73 0d 09 09 09 09 | 09 09 09 09 2f 2f 20 77 |ols.....|....// w|
|00001980| 69 6c 6c 20 62 65 20 64 | 72 61 77 6e 20 69 6e 20 |ill be d|rawn in |
|00001990| 42 2f 57 2e 0d 09 64 6c | 67 50 74 72 20 3d 20 47 |B/W...dl|gPtr = G|
|000019a0| 65 74 4e 65 77 44 69 61 | 6c 6f 67 20 28 31 32 38 |etNewDia|log (128|
|000019b0| 2c 20 30 4c 2c 20 30 4c | 29 3b 0d 09 73 65 74 44 |, 0L, 0L|);..setD|
|000019c0| 49 74 65 6d 50 72 6f 63 | 20 28 64 6c 67 50 74 72 |ItemProc| (dlgPtr|
|000019d0| 2c 20 38 2c 20 26 64 72 | 61 77 55 73 65 72 49 74 |, 8, &dr|awUserIt|
|000019e0| 65 6d 73 29 3b 0d 09 73 | 65 74 44 49 74 65 6d 50 |ems);..s|etDItemP|
|000019f0| 72 6f 63 20 28 64 6c 67 | 50 74 72 2c 20 31 30 2c |roc (dlg|Ptr, 10,|
|00001a00| 20 26 64 72 61 77 55 73 | 65 72 49 74 65 6d 73 29 | &drawUs|erItems)|
|00001a10| 3b 0d 09 73 65 74 44 49 | 74 65 6d 50 72 6f 63 20 |;..setDI|temProc |
|00001a20| 28 64 6c 67 50 74 72 2c | 20 31 38 2c 20 26 64 72 |(dlgPtr,| 18, &dr|
|00001a30| 61 77 55 73 65 72 49 74 | 65 6d 73 29 3b 0d 09 73 |awUserIt|ems);..s|
|00001a40| 65 74 44 49 74 65 6d 50 | 72 6f 63 20 28 64 6c 67 |etDItemP|roc (dlg|
|00001a50| 50 74 72 2c 20 32 30 2c | 20 26 64 72 61 77 55 73 |Ptr, 20,| &drawUs|
|00001a60| 65 72 49 74 65 6d 73 29 | 3b 0d 09 63 6e 74 72 6c |erItems)|;..cntrl|
|00001a70| 48 64 6c 20 3d 20 62 75 | 69 6c 64 43 6f 6e 74 72 |Hdl = bu|ildContr|
|00001a80| 6f 6c 20 28 64 6c 67 50 | 74 72 2c 20 32 2c 20 35 |ol (dlgP|tr, 2, 5|
|00001a90| 30 2c 20 31 2c 20 31 30 | 30 2c 20 63 64 65 66 49 |0, 1, 10|0, cdefI|
|00001aa0| 44 2c 20 54 52 55 45 29 | 3b 0d 09 63 6e 74 72 6c |D, TRUE)|;..cntrl|
|00001ab0| 48 64 6c 20 3d 20 62 75 | 69 6c 64 43 6f 6e 74 72 |Hdl = bu|ildContr|
|00001ac0| 6f 6c 20 28 64 6c 67 50 | 74 72 2c 20 34 2c 20 35 |ol (dlgP|tr, 4, 5|
|00001ad0| 30 2c 20 31 2c 20 31 30 | 30 2c 20 63 64 65 66 49 |0, 1, 10|0, cdefI|
|00001ae0| 44 2c 20 46 41 4c 53 45 | 29 3b 0d 09 63 6e 74 72 |D, FALSE|);..cntr|
|00001af0| 6c 48 64 6c 20 3d 20 62 | 75 69 6c 64 43 6f 6e 74 |lHdl = b|uildCont|
|00001b00| 72 6f 6c 20 28 64 6c 67 | 50 74 72 2c 20 35 2c 20 |rol (dlg|Ptr, 5, |
|00001b10| 35 30 2c 20 31 2c 20 31 | 30 30 2c 20 63 64 65 66 |50, 1, 1|00, cdef|
|00001b20| 49 44 20 2b 20 6a 75 73 | 74 41 72 72 6f 77 73 2c |ID + jus|tArrows,|
|00001b30| 20 54 52 55 45 29 3b 0d | 09 63 6e 74 72 6c 48 64 | TRUE);.|.cntrlHd|
|00001b40| 6c 20 3d 20 62 75 69 6c | 64 43 6f 6e 74 72 6f 6c |l = buil|dControl|
|00001b50| 20 28 64 6c 67 50 74 72 | 2c 20 37 2c 20 35 30 2c | (dlgPtr|, 7, 50,|
|00001b60| 20 31 2c 20 31 30 30 2c | 20 63 64 65 66 49 44 20 | 1, 100,| cdefID |
|00001b70| 2b 20 6a 75 73 74 41 72 | 72 6f 77 73 2c 20 46 41 |+ justAr|rows, FA|
|00001b80| 4c 53 45 29 3b 0d 09 63 | 6e 74 72 6c 48 64 6c 20 |LSE);..c|ntrlHdl |
|00001b90| 3d 20 62 75 69 6c 64 43 | 6f 6e 74 72 6f 6c 20 28 |= buildC|ontrol (|
|00001ba0| 64 6c 67 50 74 72 2c 20 | 39 2c 20 33 30 2c 20 32 |dlgPtr, |9, 30, 2|
|00001bb0| 30 2c 20 34 30 2c 20 63 | 64 65 66 49 44 20 2b 20 |0, 40, c|defID + |
|00001bc0| 68 61 73 43 75 73 74 6f | 6d 41 63 74 69 6f 6e 2c |hasCusto|mAction,|
|00001bd0| 20 46 41 4c 53 45 29 3b | 0d 09 28 2a 2a 63 6e 74 | FALSE);|..(**cnt|
|00001be0| 72 6c 48 64 6c 29 2e 63 | 6f 6e 74 72 6c 52 66 43 |rlHdl).c|ontrlRfC|
|00001bf0| 6f 6e 20 3d 20 38 3b 0d | 09 63 6e 74 72 6c 48 64 |on = 8;.|.cntrlHd|
|00001c00| 6c 20 3d 20 62 75 69 6c | 64 43 6f 6e 74 72 6f 6c |l = buil|dControl|
|00001c10| 20 28 64 6c 67 50 74 72 | 2c 20 31 31 2c 20 30 2c | (dlgPtr|, 11, 0,|
|00001c20| 20 2d 32 30 2c 20 32 30 | 2c 20 63 64 65 66 49 44 | -20, 20|, cdefID|
|00001c30| 20 2b 20 6a 75 73 74 41 | 72 72 6f 77 73 20 2b 20 | + justA|rrows + |
|00001c40| 68 61 73 43 75 73 74 6f | 6d 41 63 74 69 6f 6e 2c |hasCusto|mAction,|
|00001c50| 20 46 41 4c 53 45 29 3b | 0d 09 28 2a 2a 63 6e 74 | FALSE);|..(**cnt|
|00001c60| 72 6c 48 64 6c 29 2e 63 | 6f 6e 74 72 6c 52 66 43 |rlHdl).c|ontrlRfC|
|00001c70| 6f 6e 20 3d 20 31 30 3b | 0d 09 63 6e 74 72 6c 48 |on = 10;|..cntrlH|
|00001c80| 64 6c 20 3d 20 62 75 69 | 6c 64 43 6f 6e 74 72 6f |dl = bui|ldContro|
|00001c90| 6c 20 28 64 6c 67 50 74 | 72 2c 20 31 32 2c 20 35 |l (dlgPt|r, 12, 5|
|00001ca0| 30 2c 20 31 2c 20 31 30 | 30 2c 20 63 64 65 66 49 |0, 1, 10|0, cdefI|
|00001cb0| 44 2c 20 54 52 55 45 29 | 3b 0d 09 63 6e 74 72 6c |D, TRUE)|;..cntrl|
|00001cc0| 48 64 6c 20 3d 20 62 75 | 69 6c 64 43 6f 6e 74 72 |Hdl = bu|ildContr|
|00001cd0| 6f 6c 20 28 64 6c 67 50 | 74 72 2c 20 31 34 2c 20 |ol (dlgP|tr, 14, |
|00001ce0| 35 30 2c 20 31 2c 20 31 | 30 30 2c 20 63 64 65 66 |50, 1, 1|00, cdef|
|00001cf0| 49 44 2c 20 46 41 4c 53 | 45 29 3b 0d 09 63 6e 74 |ID, FALS|E);..cnt|
|00001d00| 72 6c 48 64 6c 20 3d 20 | 62 75 69 6c 64 43 6f 6e |rlHdl = |buildCon|
|00001d10| 74 72 6f 6c 20 28 64 6c | 67 50 74 72 2c 20 31 35 |trol (dl|gPtr, 15|
|00001d20| 2c 20 35 30 2c 20 31 2c | 20 31 30 30 2c 20 63 64 |, 50, 1,| 100, cd|
|00001d30| 65 66 49 44 20 2b 20 6a | 75 73 74 41 72 72 6f 77 |efID + j|ustArrow|
|00001d40| 73 2c 20 54 52 55 45 29 | 3b 0d 09 63 6e 74 72 6c |s, TRUE)|;..cntrl|
|00001d50| 48 64 6c 20 3d 20 62 75 | 69 6c 64 43 6f 6e 74 72 |Hdl = bu|ildContr|
|00001d60| 6f 6c 20 28 64 6c 67 50 | 74 72 2c 20 31 37 2c 20 |ol (dlgP|tr, 17, |
|00001d70| 35 30 2c 20 31 2c 20 31 | 30 30 2c 20 63 64 65 66 |50, 1, 1|00, cdef|
|00001d80| 49 44 20 2b 20 6a 75 73 | 74 41 72 72 6f 77 73 2c |ID + jus|tArrows,|
|00001d90| 20 46 41 4c 53 45 29 3b | 0d 09 63 6e 74 72 6c 48 | FALSE);|..cntrlH|
|00001da0| 64 6c 20 3d 20 62 75 69 | 6c 64 43 6f 6e 74 72 6f |dl = bui|ldContro|
|00001db0| 6c 20 28 64 6c 67 50 74 | 72 2c 20 31 39 2c 20 33 |l (dlgPt|r, 19, 3|
|00001dc0| 30 2c 20 32 30 2c 20 34 | 30 2c 20 63 64 65 66 49 |0, 20, 4|0, cdefI|
|00001dd0| 44 20 2b 20 68 61 73 43 | 75 73 74 6f 6d 41 63 74 |D + hasC|ustomAct|
|00001de0| 69 6f 6e 2c 20 46 41 4c | 53 45 29 3b 0d 09 28 2a |ion, FAL|SE);..(*|
|00001df0| 2a 63 6e 74 72 6c 48 64 | 6c 29 2e 63 6f 6e 74 72 |*cntrlHd|l).contr|
|00001e00| 6c 52 66 43 6f 6e 20 3d | 20 31 38 3b 0d 09 63 6e |lRfCon =| 18;..cn|
|00001e10| 74 72 6c 48 64 6c 20 3d | 20 62 75 69 6c 64 43 6f |trlHdl =| buildCo|
|00001e20| 6e 74 72 6f 6c 20 28 64 | 6c 67 50 74 72 2c 20 32 |ntrol (d|lgPtr, 2|
|00001e30| 31 2c 20 30 2c 20 2d 32 | 30 2c 20 32 30 2c 20 63 |1, 0, -2|0, 20, c|
|00001e40| 64 65 66 49 44 20 2b 20 | 6a 75 73 74 41 72 72 6f |defID + |justArro|
|00001e50| 77 73 20 2b 20 68 61 73 | 43 75 73 74 6f 6d 41 63 |ws + has|CustomAc|
|00001e60| 74 69 6f 6e 2c 20 46 41 | 4c 53 45 29 3b 0d 09 28 |tion, FA|LSE);..(|
|00001e70| 2a 2a 63 6e 74 72 6c 48 | 64 6c 29 2e 63 6f 6e 74 |**cntrlH|dl).cont|
|00001e80| 72 6c 52 66 43 6f 6e 20 | 3d 20 32 30 3b 0d 09 64 |rlRfCon |= 20;..d|
|00001e90| 6f 0d 09 7b 0d 09 09 4d | 6f 64 61 6c 44 69 61 6c |o..{...M|odalDial|
|00001ea0| 6f 67 20 28 28 4d 6f 64 | 61 6c 46 69 6c 74 65 72 |og ((Mod|alFilter|
|00001eb0| 50 72 6f 63 50 74 72 29 | 20 6d 79 46 69 6c 74 65 |ProcPtr)| myFilte|
|00001ec0| 72 2c 20 26 69 74 65 6d | 48 69 74 29 3b 0d 09 7d |r, &item|Hit);..}|
|00001ed0| 20 77 68 69 6c 65 20 28 | 69 74 65 6d 48 69 74 20 | while (|itemHit |
|00001ee0| 21 3d 20 6f 6b 29 3b 0d | 7d 0d 00 00 00 00 00 00 |!= ok);.|}.......|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001f10| 48 6e ff fc 2f 0a 4e ba | 11 0c 26 40 70 00 10 05 |Hn../.N.|..&@p...|
|00001f20| 37 40 00 24 3e ac 00 04 | 4e ba f9 d8 27 40 00 04 |7@.$>...|N...'@..|
|00001f30| 06 44 65 6d 6f 2e 63 b4 | 02 00 00 00 50 61 72 74 |.Demo.c.|....Part|
|00001f40| 53 49 54 78 00 00 00 00 | 00 00 00 00 00 02 2a 9e |SITx....|......*.|
|00001f50| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 ab c3 e3 95 00 00 | 00 00 00 00 01 7e 00 02 |........|.....~..|
|00001f80| 00 23 17 6c 00 03 00 22 | 7c 04 60 00 ff 1e 1a 2c |.#.l..."||.`....,|
|00001f90| 00 01 70 00 10 05 37 40 | 00 24 7c 02 60 00 ff 0c |..p...7@|.$|.`...|
|00001fa0| 48 6c 00 02 1f 2c 00 01 | 2f 0b 2f 0a 4e ba 01 4a |Hl...,..|/./.N..J|
|00001fb0| 1a 00 7c 04 4f ef 00 0e | 60 00 fe f0 48 6c 00 02 |..|.O...|`...Hl..|
|00001fc0| 1f 2c 00 01 2f 0b 2f 0a | 4e ba 01 2e 1a 00 7c 06 |.,.././.|N.....|.|
|00001fd0| 4f ef 00 0e 60 00 fe d4 | 3f 2c 00 02 4e ba f6 d6 |O...`...|?,..N...|
|00001fe0| 2f 00 4e ba 0c 0a 26 40 | 25 4b 00 18 70 00 10 2c |/.N...&@|%K..p..,|
|00001ff0| 00 01 35 40 00 1c 20 53 | 00 28 00 02 00 05 7c 04 |..5@.. S|.(....|.|
|00002000| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00002010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002020| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|00002030| 02 7d 00 36 00 28 01 d4 | 02 54 ab ba 04 f8 00 00 |.}.6.(..|.T......|
|00002040| 00 6e 00 00 00 6e 00 00 | 00 00 00 00 00 00 01 00 |.n...n..|........|
|00002050| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 39 1e f0 |...L...L|...2.9..|
|00002060| 0e 54 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.T.....2|..MPSR..|
|00002070| 00 0a 03 ed ff ff 00 00 | 00 00 00 39 1d 80 00 00 |........|...9....|
+--------+-------------------------+-------------------------+--------+--------+